import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
// 引入svg-icons插件
import 'virtual:svg-icons-register'
const app = createApp(App)
//  引入element-plus,国际化：中文
app.use(ElementPlus, { locale: zhCn })
//  引入全局组件
import gloablComponent from './components/index'
app.use(gloablComponent)
//  引入全局样式
import '@/styles/index.scss'
//  引入路由
import router from '@/router'
app.use(router)
//  引入pinia
import pinia from '@/store/index'
app.use(pinia)
// Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
const vuetify=(createVuetify({
  components,
  directives
}))
app.use(vuetify)

app.mount('#app')
